/** 
 * All Rights Reserved , Copyright (C) 2021 , 青岛鼎信通讯股份有限公司
 * 
 * SdProjectTeamActionAuto
 * SD项目任命-项目组成员
 * 
 * 修改纪录
 * 2021-12-08 版本：1.0 wangxinhua 创建。
 * @version 版本：1.0
 * @author 作者：wangxinhua
 * 创建日期：2021-12-08
 */

package com.topscomm.gpm.controller.auto;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topscomm.gpm.GpmController;
import com.topscomm.gpm.pojo.GpmProjectTeamEntity;
import com.topscomm.gpm.service.IGpmProjectTeamService;
import com.topscomm.pub.vo.ResponseResult;

public class GpmProjectTeamControllerAuto extends GpmController<GpmProjectTeamEntity, IGpmProjectTeamService> {
	/**
	 * 
	 * @description: 
	 * @param paraMap
	 * @return 
	 * @author: wangxinhua
	 * @date: 2021-12-08
	 * @modify:
	 */
	@Override
	@GetMapping(value = "/dataCodeList")
	public ResponseResult<Object> dataCodeList(@RequestParam(required = false) Map<String, Object> paraMap) {
		Map<String, Object> codeMap = new HashMap<String, Object>();
		
		List<Map<String, Object>> stateList = datacodeCache.getCodeListMap("TapApprovalBillState", "", "sortcode");
		codeMap.put("stateList", stateList);
		List<Map<String, Object>> enabledList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("enabledList", enabledList);
		List<Map<String, Object>> appointmenttypeList = datacodeCache.getCodeListMap("GpmAppointmentType", "", "sortcode");
		codeMap.put("appointmenttypeList", appointmenttypeList);
		List<Map<String, Object>> projectroleList = datacodeCache.getCodeListMap("GpmProjectRole", "", "sortcode");
		codeMap.put("projectroleList", projectroleList);
		List<Map<String, Object>> workgroupList = datacodeCache.getCodeListMap("GpmWorkGroup", "", "sortcode");
		codeMap.put("workgroupList", workgroupList);
		super.dataCodeList(paraMap);
		return ResponseResult.ok(codeMap);
	}
}

